package com.lizemin.beanpostprocessor.entity;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;

/**
 * @author lzm
 * @date 2025/7/4 20:19
 * @description
 */
@Slf4j
@Data
public class Dog implements InitializingBean {

    private String name;

    private Integer age;

    @Override
    public void afterPropertiesSet() throws Exception {
        log.info("开始初始化{}类的实例对象, name = {}, age = {}", this.getClass().getName()
                , this.name, this.age);
    }

}
